﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.Design;

namespace Transformer.iHunter.UI
{
    public partial class FirstRunSettingsPanel : UserControl
    {
        public FirstRunSettingsPanel()
        {
            InitializeComponent();
        }

        private void buttonBrowseFolder_Click(object sender, EventArgs e)
        {
            if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
            {
                this.textBoxAttFolder.Text = folderBrowserDialog1.SelectedPath;
            }
        }

        private void FirstRunSettingsPanel_Load(object sender, EventArgs e)
        {
            this.textBoxUserName.Text = Environment.UserName;
            this.textBoxAttFolder.Text = System.IO.Path.Combine(
                System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),
                "iHunter"
                );
        }
    }
}
